﻿@model AppManager.Model.Sys_Menu

@section seo{
    <title>@ViewBag.Title</title>
}
@section script{
    <script type="text/javascript">
        $(function () {
            window.postUrl = '@Url.Action("Edit")';
            window.form = $('#form1');
            bindValidate(ajaxSubmit, form);
        });

        function ajaxSubmit() {
            msgBox.showMsgWait("正在提交");
            var data = $(form).serialize();
            $.post(postUrl, data, function (ajaxMsg) {
                msgBox.showMsg(ajaxMsg);
                if (ajaxMsg.status == 1) {
                    if (ajaxMsg.url != undefined && ajaxMsg.url != '') {
                        location.href = ajaxMsg.url;
                    }
                }
            })
        }
    </script>
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.HiddenFor(s => s.Id)

    <div class="admin_main">
        <!--當前位置 B-->
        <div class="mnav0">
            <ul>
                您正在操作的業務：系統管理 >>>
                <a href="list.aspx">菜單列表</a> >>> 添加菜單
            </ul>
            <br />
            <br />
        </div>
        <!--當前位置 E-->

        <!--内容区域 B-->
        <div>
            <div class="sideWidget">
                <div class="widget fluid">
                    <div class="whead">
                        <h6>
                            添加菜單
                        </h6>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>
                                菜單名稱:
                            </label>
                        </div>
                        <div class="grid9">
                            <input name="TxtMenuNameHK" type="text" id="TxtMenuNameHK" onblur="getcn('TxtMenuNameCN',this.value)" style="width:200px;">
                        </div>
                        <div class="clear">
                        </div>
                    </div>

                    <div class="formRow">
                        <div class="grid3">
                            <label>
                                狀態:
                            </label>
                        </div>
                        <div class="grid9">
                            <table id="RblFlag" border="0">
                                <tbody>
                                    <tr>
                                        <td><input id="RblFlag_0" type="radio" name="RblFlag" value="1" checked="checked"><label for="RblFlag_0">啟用</label></td>
                                        <td><input id="RblFlag_1" type="radio" name="RblFlag" value="0"><label for="RblFlag_1">禁用</label></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="formRow">
                        <div class="grid3">
                            <label>
                                &nbsp;
                            </label>
                        </div>
                        <div class="grid9">
                            <input type="submit" name="butSub" value="提 交" id="butSub" class="buttonM1 bGreen">
                            &nbsp;&nbsp;&nbsp;
                            <input id="butReturn" type="button" class="buttonM1 bGreen" value="返 回" onclick="javascript:history.go(-1)">
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
            <div class="clear" style="height: 50px;">
            </div>
        </div>
        <!--内容区域 E-->
    </div>
}

